
<h1><?php echo $title; ?></h1>
<table class="list" cellpadding=3 >
	<thead>
		<tr>
				<th width="5%" class="center"><?php echo "ID" ?></th>
				<th><?php echo __("ID Sostenitore", $module)?></th>
				<th><?php echo __("Titolo", $module)?></th>
				<th><?php echo __("Sostenitore", $module)?></th>
				<th><?php echo __("Assistito", $module)?></th>
				<th><?php echo __("Missione", $module)?></th>
				<th><?php echo __("Tipo Sostegno", $module)?></th>
				<th><?php echo __("Data Inserimento", $module)?></th>
				<th><?php echo __("Data Inizio", $module)?></th>
				<th><?php echo __("Ultimo Contatto", $module)?></th>
				<th><?php echo __("Data Fine", $module)?></th>
				<th><?php echo __("Stato", $module)?></th>
				<th><?php echo __("Indirizzo Sostenitore", $module)?></th>
				<th><?php echo __("Note", $module)?></th>
				<th ><?php echo __("TELEFONO", $module) ?></th>
				<th ><?php echo __("CF", $module) ?></th>
				<th ><?php echo __("CAP", $module) ?></th>
				<th ><?php echo __("CITTA'", $module) ?></th>
				<th ><?php echo __("PROVINCIA", $module) ?></th>
				<th ><?php echo __("NAZIONE", $module) ?></th>
				<th ><?php echo __("EMAIL", $module) ?></th>
				<th ><?php echo __("STATO SOSTENITORE", $module) ?></th>
				<th ><?php echo __("TESTO ADOZIONE", $module) ?></th>
				<th ><?php echo __("RINGRAZIAMENTI", $module) ?></th>
				<th ><?php echo __("RICEVUTA FISCALE", $module) ?></th>
				<th ><?php echo __("NOTE ASSISTITO", $module) ?></th>
				<th ><?php echo __("DATA NASCITA ASSISTITO", $module) ?></th>
				<th ><?php echo __("LUOGO NASCITA ASSISTITO", $module) ?></th>
				<th ><?php echo __("SESSO ASSISTITO", $module) ?></th>
				<th ><?php echo __("PADRE ASSISTITO", $module) ?></th>
				<th ><?php echo __("MADRE ASSISTITO", $module) ?></th>
				<th ><?php echo __("PARENTELA ASSISTITO", $module) ?></th>
				<th ><?php echo __("NAZIONE ASSISTITO", $module) ?></th>
				<th ><?php echo __("RESPONSABILE ASSISTITO", $module) ?></th>
				<th ><?php echo __("STATO ASSISTITO", $module) ?></th>
				<th ><?php echo __("INFO ASSISTITO", $module) ?></th>
				<th ><?php echo __("NOTE RISERVATE ASSISTITO", $module) ?></th>
		</tr>
	</thead>
	<tbody>
<?php if ($rows) : ?>
<?php $i = $start+1; foreach ($rows as $row): ?>
<?php if ($i % 2 != 0): $rowClass = 'odd'; else: $rowClass = 'even'; endif;?>
		<tr class="<?php echo $rowClass?>">
				<td class="center"><?php echo  $row['id']?></td>
				<td class="center"><?php echo  $row['id_sostenitore']?></td>
				<td><?php echo $row['titolo'] ?></td>
				<td><?php echo $row['sostenitore'] ?></td>
				<td><?php echo $row['assistito'] ?></td>
				<td><?php echo $row['missione'] ?></td>
				<td><?php echo $row['tiposostegno'] ?></td>
				<td><?php echo $row['data_inserimento'] ?></td>
				<td><?php echo $row['data_inizio'] ?></td>
				<td><?php echo $row['ultimo_contatto'] ?></td>
				<td><?php echo $row['data_fine'] ?></td>
				<td><?php echo $row['stato'] ?></td>
				<td><?php echo $row['indirizzo'] . " - " . $row['presso'] ?></td>
				<td><?php echo $row['note'] ?></td>
				<td    ><?php echo $row['tel1']; ?></td>
				<td    ><?php echo $row['cfisc']; ?></td>
				<td    ><?php echo $row['cap']; ?></td>
				<td    ><?php echo $row['citta']; ?></td>
				<td    ><?php echo $row['prov']; ?></td>
				<td    ><?php echo $row['nazione']; ?></td>
				<td    ><?php echo $row['email']; ?></td>
				<td    ><?php echo $row['stato_sostenitore']; ?></td>
				<td    ><?php echo $row['adozioni_txt']; ?></td>
				<td    ><?php echo ($row['ringraziamenti'] == 1)? "SI'": "NO"; ?></td>
				<td    ><?php echo ($row['ricevuta_fiscale'] == "S")? "SI'": "NO"; ?></td>
				<td><?php echo $row['note_assistito'] ?></td>
				<td><?php echo $row['a_data_nascita'] ?></td>
				<td><?php echo $row['a_luogo_nascita'] ?></td>
				<td><?php echo $row['a_sesso'] ?></td>
				<td><?php echo $row['a_padre'] ?></td>
				<td><?php echo $row['a_madre'] ?></td>
				<td><?php echo $row['a_parentela'] ?></td>
				<td><?php echo $row['a_nazione'] ?></td>
				<td><?php echo $row['a_responsabile'] ?></td>
				<td><?php echo $row['a_stato'] ?></td>
				<td><?php echo $row['a_info'] ?></td>
				<td><?php echo $row['a_note_riservate'] ?></td>
		</tr>
<?php $i++; endforeach; ?>
<?php endif; ?>
</tbody>
</table>	

